<template>
  <ServerView></ServerView>
</template>

<script>
import { getServer } from "@/api/monitor/server";
import ServerView from "@/views/monitor/server/index.vue"
export default {
  name: "Server",
  components: {
    ServerView
  },
  data() {
    return {
    };
  },
  created() {
    // 从session中获取数据
      const session = window.sessionStorage.getItem("sessionObj");
      const sessionObject = JSON.parse(session);
      const sessiondate = sessionObject.data;
      const sessionObjects = JSON.parse(sessiondate);
      const username = sessionObjects.username;
      const password = sessionObjects.password;
      window.sessionStorage.setItem("username",username)
      window.sessionStorage.setItem("password",password)
  },
  methods: {
  }
};
</script>
